home *** CD-ROM | disk | FTP | other *** search
- Path: ts1-025.jaxnet.com!user
- From: garyg@jax.jaxnet.com (Gary M. Greenberg)
- Newsgroups: comp.lang.c
- Subject: Re: string search?
- Date: 29 Mar 1996 22:27:39 GMT
- Organization: Southeast Network Services, Inc.
- Message-ID: <garyg-2903961718020001@ts1-025.jaxnet.com>
- References: <4jbmtk$78k@dfw-ixnews3.ix.netcom.com> <315AA9F1.9D9@isd.net>
- NNTP-Posting-Host: ts1-025.jaxnet.com
-
- In article <315AA9F1.9D9@isd.net>, David Peterson <dpeterso@isd.net> wrote:
-
- > Ricardo Mor wrote:
- > >
- > > How can I search for a string of characters within another string?
- > > for example..
- > >
- > > string = "NEXT_TIME";
- > >
- > > string2 = "NEXT";
- > >
- > > how can I find string2 in string?
- > >
- > > Eddy...
- >
- > strstr(string, string2);
- >
- > Now tell me, was this a joke, or what?
- >
- > Dave
-
- Maybe not. Perhaps what the individual wants is some examples of how to
- most efficiently use algos to solve finding a string within another
- string within some large docs? If that's the case, Ricardo would do well
- to look at the July 1995 issue of C/C++ User's Journal && the article by
- John Ross therein.
-
- Hope I'm not stretching things for R.M. here; if so, 'rm -r ~rmor' ;-)
-
- C'ya,
-
- gary /* the Sorcerer's Apprentice */
- http:/jax.jaxnet.com/~garyg/main_page.html
-
- Free Speech in America murdered by the Communications Decency Act.
- (((U.S. Congress && Executive) == (Collective Moron)) == 1)
-